<?php
/**
 * Template Name: Home
 *
 * @package WordPress
 * @subpackage SPC
 */

get_header(); ?>

	<div id="content" class="home">

		<div id="wide">

			<?php if (have_posts()) : while (have_posts()) : the_post(); ?>

				<?php
					$content = get_the_content();
					$content = apply_filters('the_content', $content);
					$content = str_replace(']]>', ']]&gt;', $content);
				?>

				<div class="post" id="post-<?php the_ID(); ?>">
					<div class="entry">

						<?php echo($content); ?>

						<p class="meta">This page was last updated on
							<?php the_modified_date(); ?> at <?php the_modified_time() ?></p>
						<?php edit_post_link('Edit this entry.', '<p>', '</p>'); ?>

					</div>
				</div>

			<?php endwhile; endif; ?>

		</div>

		<div id="newsfeed">

			<h4>Latest</h4>

			<?php query_posts("cat=1&showposts=5");
				if( have_posts() ) : while ( have_posts() ): the_post(); ?>

				<div class="newsitem">
					<p><b><?php the_Title(); ?></b></p>
					<p><?php $more=0; the_content("read more..."); ?></p>
					<p class="date"><?php the_date(); ?></p>
				</div>

			<?php endwhile; endif; ?>

		</div>

	</div>

<?php get_footer(); ?>

<?php
// have 'welcome' text as the main body,
//	with a news feed on the right of 'latest news'
//	maybe a 'highlights' box just above that?
//	or 'useful links'?
?>
This is the home page